package com.yanqu.road.server.cmd.activity.guagifts.cross;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.GuaGiftsProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.guagifts.GuaGiftsModule;
import com.yanqu.road.server.protocol.GameProtocol;

@Cmd(code = GameProtocol.S_GUAGIFTS_CONCAT_TARGET_RANK_VALUE_CROSS_BACK, desc = "孤寡献礼 拼接榜单值返回")
public class GuaGiftsConcatTargetRankValueCrossBackCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {

        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        GuaGiftsProto.GuaGiftsRelationListRespMsg resultMsg = GuaGiftsProto.GuaGiftsRelationListRespMsg.parseFrom(packet.getBytes());
        player.getModule(GuaGiftsModule.class).getRelationListCrossBack(resultMsg);

    }

    @Override
    public void sendData(GamePlayer player) {
    }
}
